import { CommentActionsEnum } from '../../../_/vue/store/comment'
import axios from '../../../plugins/axios'
export default {
  [CommentActionsEnum.LIST] ({ commit }, params) {
    return axios.get('/comments', { params })
  },
  [CommentActionsEnum.SWITCH] ({ commit }, data) {
    return axios.post('/comments/switch', data)
  },
  [CommentActionsEnum.DELETE] ({ commit }, data) {
    console.log(data)
    return axios.delete('/comments', { data })
  }
}
